﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ServiceLib;

namespace DataEngine
{
    class Program
    {
        static void Main(string[] args)
        {
            ConfigSevice.ServiceTitle = "Data Engine";
            ConfigSevice.ServiceDescription = "Data Engine will input data to Data Engine";
            if (RuntimePolicyHelper.LegacyV2RuntimeEnabledSuccessfully)
            {
                Console.WriteLine("Running .NET in MIXED mode");
            }
            else
            {
                Console.WriteLine("Running .NET in SINGLE mode");
            }


            IConsole myApp = new ConsoleApplication();
            // Check parameter
            if (!ConfigSevice.MainArgCheck(myApp))
            {
                myApp.Start(true);
            }
        }
    }
}
